package com.huli.controller;

import com.huli.domain.SysUser;
import com.huli.service.SysUserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("sysuser")
public class           SysUserController {
    @Resource
    private SysUserService sysUserService;

    @RequestMapping("findAll")
    public List<SysUser> list(){
        return sysUserService.findAll();
    }

    //根据ID进行查询详细数据
    @RequestMapping("findById")
    public SysUser findById(String id){
        return sysUserService.findById(id);
    }

}
